package com.zxc.item.entity;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Table(name = "tb_category")
@Data
public class TbCategory implements Serializable {

    @Id
    @KeySql(useGeneratedKeys = true)
    private Long id;//类别id
    private String name;//类别名称
    private Long parentId;//父目录id
    private Boolean isParent; //是否为父节点
    private Long sort;//是否排序
}
